def isPrime():
    count = 0
    # 外循环：逐渐取一个数
    for num in range(1000, 1500):
        isPrime = True
        # 内循环：检测是否为素数
        for self in range(2, num):
            if num % self == 0:
                isPrime = False
                break
        # 每行10个显示
        if isPrime:
            count += 1
            print(num, "\t", end="")
            if count % 10 == 0:
                print("")


isPrime()





